package proyectoX.src.TDAPair;

public class Pair<A, B> {
	
	
	protected A first;
	protected B second;
	
	
	public Pair(A a, B b) {
		first = a; 
		second = b;
	}
	
	
	public A getFirst() {
		return first;
	}
	
	
	public void setFirst(A a) {
		first = a;
	}
	
	public B getSecond() {
		return second;
	}
	
	public void setSecond(B b) {
		second = b;
	}
	
	public String toString() {
		return "("+getFirst().toString()+", "+getSecond().toString()+")";
	}
	
}
